<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>合并对象</title>
</head>
<body>
    
</body>
</html>
<script>
    let searchParams={
        // 一级分类id
        "category1Id": "",
        // 二级分类id
        "category2Id": "",
        // 三级分类id
        "category3Id": "",
        // 分类名字
        "categoryName": "",
        // 搜索的关键字
        "keyword": "",
        // 排序
        "order": "",
        // pageNo：当前第几页，默认值为1
        "pageNo": 1,
        // pageSize：每一页几条数据，默认3条数据
        "pageSize": 3,
        // 平台售卖属性带的参数
        "props": [],
        // 品牌
        "trademark": ""
      }
    let query ={category1Id:'110',categoryName:'手机'}
    let params={keyword:'华为'}
    console.log(Object.assign(searchParams,query,params));
</script>